<!DOCTYPE html>
<html>
<head>
    <title>$app.topic 反馈管理</title>
    #parse("/inc/meta.htm")
</head>
<body id="inner_page_start">

#parse("/inc/header.htm")

<div id="wrapper">

    #parse("/inc/menu.htm")

    <div id="content-wrapper">

        <div class="container-fluid">

            <!-- 面包屑-->
            <ol class="breadcrumb">
                <li class="breadcrumb-item">
                    反馈信息
                </li>
                <li class="breadcrumb-item active">申诉列表</li>
            </ol>

            <div class="card mb-3">
                <div class="card-header">
                    <i class="fas fa-table"></i>
                    用户申诉浏览</div>


                <div class="card-body">
                    <form id="list_form" action="/feedback/feed" >
                        <input type="hidden" name="page"  id="list_page" value="$respData.pagenumber" />

                        <div class="form-inline">
                            <div class="form-group mx-sm-3">
                                <label>标题:
                                    <input type="search" class="form-control form-control-sm" name="title"
                                           value="$!form.title" />
                                </label>

                            </div>
                            <div class="form-group mx-sm-3">
                                <label>信息:
                                    <input type="search" class="form-control form-control-sm" name="des"
                                           value="$!form.des" />
                                </label>

                            </div>
                            <div class="form-group mx-sm-3">
                                <label>类型:
                                    <select name="state" aria-controls="dataTable"
                                            class="custom-select custom-select-sm form-control form-control-sm">
                                        <option value="" >全部</option>
                                        <option value="1" #if($!form.state ==1 ) selected #end >禁用</option>
                                        <option value="0" #if($!form.state ==0 ) selected #end >正常</option>
                                    </select>
                                </label>
                            </div>

                            <div class="form-group mx-sm-3">
                                <div class="dataTables_filter float-right">
                                    <button class="btn btn-primary"  onclick="jump('list_form',1)">搜索</button>
                                </div>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-sm-12 col-md-12"  >
                                <div class="form-inline float-right">
                                    <label>显示
                                        <select name="rows"  onchange="submit()"  class="form-control">
                                            <option value="10" #if($respData.pagerow == 10) selected #end>10</option>
                                            <option value="15" #if($respData.pagerow == 15) selected #end>15</option>
                                            <option value="20" #if($respData.pagerow == 20) selected #end>20</option>
                                            <option value="25" #if($respData.pagerow == 25) selected #end>25</option>
                                        </select>
                                        行</label>
                                </div>
                            </div>
                        </div>


                        <div class="row">
                            <div class="col-sm-12 table-outer-box">
                                <table class="table table-bordered dataTable" id="dataTable" width="100%" cellspacing="0" role="grid" aria-describedby="dataTable_info" style="width: 100%;">
                                    <thead>
                                    <tr role="row">
                                        <th>标题</th>
                                        <th>备注</th>
                                        <th>时间</th>
                                        <th>类型</th>
                                        <th>用户</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    #foreach($row in ${respData.getRows()} )
                                    <tr>
                                        <td>$!row.title</td>
                                        <td style="max-width: 300px;">$!row.des</td>
                                        <td>$!row.ctime</td>
                                        <td>$!row.type</td>
                                        <td>$!row.uid</td>
                                        <td>
                                            <!--<a class="btn btn-primary btn-sm" href="/suser/user?id=$row.id">查看</a>-->
                                        </td>
                                    </tr>
                                    #end
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-12 col-md-5">
                                <div class="dataTables_info" id="dataTable_info" role="status" aria-live="polite">
                                    显示 $!respData.s 到 $!respData.e 一共 $!respData.total 条
                                </div>
                            </div>
                            <div class="col-sm-12 col-md-7">
                                <div class="dataTables_paginate paging_simple_numbers" id="dataTable_paginate">
                                    <ul class="pagination float-right">
                                        #page("/feedback/feed?rows=$!respData.1" $respData )
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
        <!-- /.container-fluid -->
        #parse("/inc/copyright.htm")
    </div>
    <!-- /.content-wrapper -->
</div>
#parse("/inc/footer.htm")
</body>
</html>